package cn.xyy.common.spring;

import cn.xyy.common.config.ConfigUtil;
import cn.xyy.common.config.AppConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 通用bean注入
 * 
 * @author xyy
 *
 */
@Component
public class CommonBeanInject {

	@Autowired(required = false)
	public void setAppConfig(AppConfig appConfig) {
		ConfigUtil.setAppConfig(appConfig);
	}

}
